package com.example.tao.smartcar;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Window;

public class LaunchActivity extends BaseActivity {

    private boolean isShown = false; //是否已经显示一次了
    private final int TIMEOUT = 0x01;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_launch);
        SmartCarApplication.getInstance().addActivity(this);
        Message message = Message.obtain();
        message.what = TIMEOUT;
        mHandler.sendMessageDelayed(message, 2000);
    }

    Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            if (msg.what == TIMEOUT) {
                startActivity(new Intent(LaunchActivity.this, ControlMethodChooseActivity.class));
            }
        }
    };
}
